{% extends "base.html" %}

{% block title %}留言墙{% endblock %}

{% block content %}
<div class="container">
	<br/>
	<h1>班级留言墙</h1>
	{% for message in all_message %}
	{% if not message.message == 'None' %}
	<h6><a href="{% url 'message:look' message.id %}">{{ message.user.username }} 
		<small>{{ message.date }}</small></a></h6>
	<p>{{ message.message|linebreaksbr }}</p>
	{% endif %}
	{% endfor %}
	<a href="{% url 'message:editor' %}" class="btn btn-link" role="button">编辑我的留言</a>
	<a href="{% url 'message:random' %}" class="btn btn-primary" role="button">随机一条留言</a>
</div>
{% endblock %}